﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebBHXH
{
    public partial class Template_BHHY_1 : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["username"] == null || Session["username"].ToString() == "")
            {
                Response.Redirect("Login.aspx");
            }
            lblUser.Text = Session["username"].ToString();
        }

        protected void lbtLogout_Click(object sender, EventArgs e)
        {
            Session["username"] = null;
            Session["id"] = null;
            Response.Redirect("Login.aspx");
        }
    }
}